-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adds support for API Registry and enable data residency #374
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, I think I figured out how to navigate the APIs, versions to get to the spec, but we are missing getContent for the spec
gorun registry apis versions artifacts specs
Manage specs for an API version in Apigee Registry
Usage:
apigeecli registry apis versions artifacts specs [command]
Available Commands:
list List all specs for an API version
The equivalent of this API
curlx https://apigeeregistry.googleapis.com/v1/projects/apigeex-mint-kurt/locations/global/apis/ui-api-id-1/versions/v1/specs/petstore-30yaml:getContents
I think we need:
gorun registry apis versions specs get content
Along with
gorun registry apis versions specs create
gorun registry apis versions specs get
gorun registry apis versions specs delete
gorun registry apis versions specs update
I don't think it should be under "artifacts" as it is now
apigeecli registry apis versions artifacts specs
just versions, artifacts are something else.
apigeecli registry apis versions specs -h
The correct command for what you are trying is:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think the spec content should be associated in the context of an artifact.
Structure of APIs is:
projects.locations
projects.locations.apis
projects.locations.apis.artifacts # Related, Dependencies
projects.locations.apis.deployments
projects.locations.apis.deployments.artifacts
projects.locations.apis.versions
projects.locations.apis.versions.artifacts
projects.locations.apis.versions.specs:getContents # OAS
projects.locations.apis.versions.specs.artifacts
projects.locations.artifacts
This API returns spec content, notice there's no artifact in the path.
curl https://apigeeregistry.googleapis.com/v1/projects/apigeex-mint-kurt/locations/global/apis/ui-api-id-1/versions/v1/specs/petstore-30yaml:getContents
I think this apigeecli
gorun registry apis versions artifacts specs get --org=$ORG --name=petstore-30yaml --api-version=v1 --api-name=ui-api-id-1 --content=true
should not have artifacts, just
gorun registry apis versions specs get --org=$ORG --name=petstore-30yaml --api-version=v1 --api-name=ui-api-id-1 --content=true
Getting content from an API spec version should output to the named filename
Creates file: petstore-30yaml.txt but should use filename: petstore-3.0.yaml |
LGTM! |
No description provided.